#!/usr/bin/python3
# -*- coding: utf-8 -*-
from testFile import read_yaml
from common import requests_public


def getData(name1, name2):
    data = read_yaml.readYaml()['routes'][name1][name2]
    res = requests_public.requests_public(data)
    return res
